				<?php
					include("functions/header.php");
					include("functions/conn.php");      
				?>
				<ul class="art-menu">
                		<li>
                			<a href="index.php" class=" active"><span class="l"></span><span class="r"></span><span class="t">Home</span></a>
                		</li>
                		<li>
                			<a href="#"><span class="l"></span><span class="r"></span><span class="t">Statistics</span></a>
                		</li>		
                		<li>
                			<a href="expositions.php"><span class="l"></span><span class="r"></span><span class="t">Expositions</span></a>
                		</li>
                	</ul>
                </div>
                <div class="art-Header">
                    <div class="art-Header-jpeg"></div>
                    <div class="art-Logo">
                        <h1 id="name-text" class="art-Logo-name"><a href="#">Expositions Online</a></h1>
                    </div>
                </div>
			   <div class="art-contentLayout">
                    <div class="art-content">
                        <div class="art-Post">
                            <div class="art-Post-body">
								<div class="art-Post-inner">
									<ul class="art-menu">
										<li>
											<a href="index.php" class=" active"><span class="l"></span><span class="r"></span><span class="t">Home</span></a>
										</li>
										<li>
											<a href="#"><span class="l"></span><span class="r"></span><span class="t">Statistics</span></a>
										</li>		
										<li>
											<a href="expositions.php"><span class="l"></span><span class="r"></span><span class="t">Expositions</span></a>
										</li>
									</ul>
								</div>
												<h2 class="art-PostHeader">
													Welcome
												</h2>
												<div class="art-PostContent">
													
													
													<p>Lorem ipsum dolor sit amet,consectetuer adipiscing elit. 
													Quisque sed felis. Aliquam sit amet felis. Mauris semper, 
													velit semper laoreet dictum, quam diam dictum urna, nec placerat elit nisl 
													in quam. Etiam augue pede, molestie eget, rhoncus at, convallis ut, eros.</p>
													
												</div>
												<div class="cleared"></div>
								</div>
                        
                        		<div class="cleared"></div>
                            </div>
                        </div>
                        <div class="art-Post">
                            <div class="art-Post-body">
                        <div class="art-Post-inner">
                                    <div class="art-Block">
										<div class="art-Block-body">
											<div class="art-BlockHeader">
												<div class="l"></div>
												<div class="r"></div>
												<div class="t"><center>Most Viewed</center></div>
										  </div>
											<div class="art-BlockContent">
												<div class="art-PostContent">
													<div class="bar">
														<div id="mostViewed" class="scroll">
															<?php $request=mysql_query("select * from expositions;",$connexion);
																  $nb=mysql_num_rows($request);
																  if ($nb!=0)
																  while ($ligne=mysql_fetch_array($request) ){
															?>
														  <h4><?php echo($ligne['title']) ?></h4>
														  <a href="exposition.php?id=<?php echo($ligne['Id_exposition']) ?>">
															<img src="assets/<?php echo($ligne['img']) ?>" alt="<?php echo($ligne['title']) ?>" />
														  </a>
														  <?php } ?>
														</div>
													</div>
												</div>
											</div>
										</div>
                                    </div>

									<div class="art-Block" id="right">
										<div class="art-Block-body">
											<div class="art-BlockHeader">
												<div class="l"></div>
												<div class="r"></div>
												<div class="t"><center>Last Added</center></div>
										  </div>
											<div class="art-BlockContent">
												<div class="art-PostContent">
													<div class="bar">
														<div id="lastAdded" class="scroll">
															<?php $request=mysql_query("select * from expositions ORDER BY title;",$connexion);
																  $nb=mysql_num_rows($request);
																  if ($nb!=0)
																  while ($ligne=mysql_fetch_array($request) ){?>
																	<h4><?php echo($ligne['title']) ?></h4>
																  <a href="exposition.php?id=<?php echo($ligne['Id_exposition']) ?>">
																	<img src="assets/<?php echo($ligne['img']) ?>" alt="<?php echo($ligne['title']) ?>" />
																  </a>
															<?php } ?>
														</div>
													</div>
												</div>
											</div>
										</div>
                                    </div>
                                        <div class="cleared"></div>
                        </div>
                        
                        		<div class="cleared"></div>
                            </div>
                        </div>
                    </div>
					<?php include_once("functions/foot.php") ?>